<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2024/4/23
 * Time: 14:20
 */

namespace app\controller\index\lists;


use app\controller\CoreController;
use app\logic\index\lists\ListsLogic;
use support\Request;
use support\Response;

class IndexController extends CoreController
{
    public function getTalentList(Request $request):Response
    {
        $param = [];
        $param['sortfield'] = $request->input('sortfield');
        $param['sortmod'] = $request->input('sortmod');
        $data = ListsLogic::getInstance()->getTalentList($param);
        return $this->endSuccess($data);
    }

    public function getVideoList(Request $request):Response
    {
        $param = [];
        $param['sortfield'] = $request->input('sortfield');
        $param['sortmod'] = $request->input('sortmod');
        $data = ListsLogic::getInstance()->getVideoList($param);
        return $this->endSuccess($data);
    }
}